package com.luobo.home.dao;

import com.luobo.home.pojo.Items;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface ItemsMapper {
    int queryCount();
    int queryCountForMap(Map maps);
    List<Items> queryAllData();
    List<Items> queryDataForMap(Map maps);
    int delDataForMap(Map map);

    int delData(Items dataObject);
    int addData(Items dataObject);

    int updateDatabyId(Items dataObject);

    int batchAddData(@Param("list") List<Items> list);
}

